﻿<AVUIExtension:TransitioningPage
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:sys="clr-namespace:System;assembly=mscorlib"	
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:AVUIExtension="clr-namespace:AVUIExtension;assembly=TransitioningWindow"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:NetrekUI="clr-namespace:NetrekUI"
	x:Name="Page"
	WindowTitle="Page"
	FlowDirection="LeftToRight"
	MinWidth="800" MinHeight="600" Background="#FF000000" TransitionInDelay="00:00:02.5000000" TransitionOutDelay="00:00:01.5000000">

	<AVUIExtension:TransitioningPage.Resources>
		<Storyboard x:Key="OnTransitionIn1">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="OnTransitionOut1">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</AVUIExtension:TransitioningPage.Resources>
	<AVUIExtension:TransitioningPage.Triggers>
		<EventTrigger RoutedEvent="AVUIExtension:TransitioningPage.TransitionIn">
			<BeginStoryboard Storyboard="{StaticResource OnTransitionIn1}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="AVUIExtension:TransitioningPage.TransitionOut">
			<BeginStoryboard x:Name="OnTransitionOut1_BeginStoryboard" Storyboard="{StaticResource OnTransitionOut1}"/>
		</EventTrigger>
	</AVUIExtension:TransitioningPage.Triggers>

	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="58.08"/>
			<RowDefinition Height="78.899"/>
			<RowDefinition Height="*"/>
			<RowDefinition Height="33.959"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="135.68"/>
			<ColumnDefinition Width="*"/>
			<ColumnDefinition Width="102.881"/>
		</Grid.ColumnDefinitions>
		<TextBlock Margin="22,8,2,0" VerticalAlignment="Top" Height="31" FontFamily="Swiss911 XCm BT" FontSize="24" TextWrapping="Wrap" Foreground="#FFFDAF05" Grid.Row="1"><Run Text="SERVER NAME:"/></TextBlock>
		<TextBox Opacity="1" OpacityMask="{x:Null}" Background="#FFFFFFFF" FontFamily="Swiss911 XCm BT" FontSize="24" FontStyle="Normal" FontWeight="Normal" Foreground="#FF000000" Margin="2,8,166.833,0" VerticalAlignment="Top" Height="31" Block.LineHeight="Auto" Text="" TextAlignment="Left" TextWrapping="Wrap" Grid.Row="1" Grid.Column="1" x:Name="ServerName" />
		<TextBlock Margin="0,8,67,0" VerticalAlignment="Top" Height="31" FontFamily="Swiss911 XCm BT" FontSize="24" TextWrapping="Wrap" Foreground="#FFFDAF05" HorizontalAlignment="Right" Width="43" Text="PORT:" Grid.Row="1" Grid.Column="1"/>
		<TextBox Opacity="1" OpacityMask="{x:Null}" Background="#FFFFFFFF" FontFamily="Swiss911 XCm BT" FontSize="24" FontStyle="Normal" FontWeight="Normal" Foreground="#FF000000" Margin="0,8,2,0" VerticalAlignment="Top" Height="31" Block.LineHeight="Auto" Text="" TextAlignment="Left" TextWrapping="Wrap" HorizontalAlignment="Right" Width="61" Grid.Row="1" Grid.Column="1" x:Name="ServerPort" />
		<AVUIExtension:NavButton FontFamily="Swiss911 XCm BT" FontSize="24" Margin="2,8,17,0" VerticalAlignment="Top" Height="31" Content="CONNECT" Grid.Row="1" Grid.Column="2" NavigateUri="Login.xaml" x:Name="ButtonConnect" Cursor="Hand" />
		<ListView IsSynchronizedWithCurrentItem="True" Margin="8,8,8,8" FontFamily="Swiss911 XCm BT" FontSize="24" Grid.Row="2" Grid.Column="1" x:Name="ServerList">
			<ListView.View>
				<GridView>
					<GridViewColumn Header="SERVER" DisplayMemberBinding="{Binding Path=Name}" />
					<GridViewColumn Header="PORT" DisplayMemberBinding="{Binding Path=PortNumber}" />
					<GridViewColumn Header="STATUS" DisplayMemberBinding="{Binding Path=Status}" />
				</GridView>
			</ListView.View>			
		</ListView>
	</Grid>
</AVUIExtension:TransitioningPage>